<!DOCTYPE html>
<html>
<head>
<style>
    div {
        background: url('resources/green1x50.png') repeat-x left top;
        background-size: auto 100%;
    }
</style>
</head>
<body>
    <div>This text should have green background.<div>
</body>
</html>
